import request from '@/utils/request'

// 查询成本统计列表
export function listCostSummary(query) {
  return request({
    url: '/gs/costSummary/list',
    method: 'get',
    params: query
  })
}

// 查询成本统计详细
export function getCostSummary(id) {
  return request({
    url: '/gs/costSummary/' + id,
    method: 'get'
  })
}

// 新增成本统计
export function addCostSummary(data) {
  return request({
    url: '/gs/costSummary',
    method: 'post',
    data: data
  })
}

// 修改成本统计
export function updateCostSummary(data) {
  return request({
    url: '/gs/costSummary',
    method: 'put',
    data: data
  })
}

// 删除成本统计
export function delCostSummary(id) {
  return request({
    url: '/gs/costSummary/' + id,
    method: 'delete'
  })
}
